package com.example.mapper;

import com.example.model.Userinfo;
import com.example.util.MyMapper;

import java.util.List;

/**
 * UserinfoMapper
 */
public interface UserinfoMapper extends MyMapper<Userinfo> {

    //@Select(value="select e.* from SysUserRole b left join SysRole c on b.role_id=c.id left join t_role_module d on c.id=d.role_id left join t_module e on d.module_id=e.id where b.user_id=#{userId}")
    //List<SysPermission> findModuleByUserId(int userId);
    Userinfo userInfo(Integer id);

    // 根据用户id查角色id
    List<Integer> listRoles(Integer id);
}
